<nav class="navbar navbar-expand-lg navbar-light bg-light sticky-top">
    <div class="container">
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01"
                aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="navbarTogglerDemo01">
            <a class="navbar-brand" href="/">大者在途</a>
            <ul class="navbar-nav mr-auto mt-2 mt-lg-0">
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                        分类
                    </a>
                    <div class="dropdown-menu" aria-labelledby="navbarDropdown" x-placement="bottom-start" style="position: absolute; will-change: transform; top: 0px; left: 0px; transform: translate3d(0px, 40px, 0px);">
                        {% for cate in category %}
                        <a class="dropdown-item" href="/category/{{ cate.id }}.html">{{ cate.title }}</a>
                        {% endfor %}
                    </div>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/archives.html">归档</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" target="_black" href="http://liteadmin.dazhetu.cn">LiteAdmin</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/about.html">关于</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/link.html">友链</a>
                </li>
            </ul>
            <form class="form-inline my-2 my-lg-0" action="/search.html" method="get">
                <input class="form-control mr-sm-2" name="keyword" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </div>
    </div>
</nav>